package com.deruan.hotcore.resource.gui.tree;

import org.columba.mail.folder.IMailFolder;
import org.columba.mail.gui.socialnet.SocialNodeModel;

import edu.uci.ics.jung.graph.Vertex;

public class ContactTreeNode extends ResultTreeNode
{
	private Integer remoteId;
	
	private String parentEmail;
	
	private Integer resultNum;
	
	private boolean isKnow;
	
	public ContactTreeNode(String name)
	{
		super(name);
	}
	
	public ContactTreeNode(String name, Integer num, boolean isKnow)
	{
		super(name);
		this.resultNum = num;
		this.isKnow = isKnow;
	}
	
	public Integer getResultNum() {
		return resultNum;
	}

	public boolean isKnow() {
		return isKnow;
	}

	public void setKnow(boolean isKnow) 
	{
		this.isKnow = isKnow;
	}
	
	//get the social node by email
	public IMailFolder getRelationSocialNode()
	{
		return SocialNodeModel.getInstance().findFolderByEmail(this.getNameString());
	}

	public Integer getRemoteId() {
		return remoteId;
	}

	public void setRemoteId(Integer remoteId) {
		this.remoteId = remoteId;
	}

	public String getParentEmail() {
		return parentEmail;
	}

	public void setParentEmail(String parentEmail) {
		this.parentEmail = parentEmail;
	}
}
